from rest_framework import serializers

from .models import CertificationInfo, ClientInfo


class CertificationInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = CertificationInfo
        fields = ('value', 'start_time', 'end_time', 'duration', )


class ClientInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = ClientInfo
        fields = ('client_cpu', 'client_mac', 'client_board', )